@charset "utf-8";
@import "config";

@mixin over{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@mixin f_b{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@mixin f_a{
    display: flex;
    justify-content: space-around;
    align-items: center;
}
@function w($wpx){
    @return $wpx/640*100%;
}
$col: #d62d31;
$ts: 0.2s;
.show{
    display: block!important;
}

.container{
    overflow: hidden;
    .web_head{
        overflow: hidden;
        .title{
            font-size: 1rem;
        }
        a:hover,a:active{
            @include highLight;
        }
    }
    .web_sec{
        color: #333;
        i{
            color: #333;
            font-size: 0.8rem;
        }
        .goods{
            height: 85px;
            background: #fff;
            border-bottom: 1px solid #e3e3e3;
            padding: 12px w(20) 12px w(160);
            margin-bottom: setLengthByHeight(20px);
            overflow: hidden;
            position: relative;
            figure{
                width: 60px;
                height: 60px;
                border: 1px solid #e3e3e3;
                position: absolute;
                top: 12px;
                left: w(20);
                img{
                    width: 100%;
                    height: 100%;
                }
            }
            p{
                height: 40px;
                line-height: 20px;
                font-size: 0.8rem;
                overflow: hidden;
                word-break: break-all;
                text-align: justify;
            }
            span{
                display: block;
                line-height: 25px;
                color: #999;
                font-size: 0.7rem;
                @include over;
            }
            &+div{
                border-top: 1px solid #e3e3e3;
            }
        }
        .info{
            height: setLengthByHeight(90px);
            line-height: setLengthByHeight(90px);
            color: #333;
            background: #fff;
            font-size: 0.8rem;
            border-bottom: 1px solid #e3e3e3;
            padding: 0 w(20);
            overflow: hidden;
            span{
                float: left;
                width: w(160);
                @include over;
            }
            input,em{
                text-align: right;
                height: 100%;
                border: none;
                width: w(450);
                @include over;
            }
            &.cost{
                .input{
                    height: 100%;
                    text-align: right;
                    i{
                        margin-right: -3px;
                    }
                    input,em{
                        text-align: right;
                        height: 100%;
                        border: none;
                        width: 23%;
                    }
                }
            }
        }
        .info_sug{
            height: setLengthByHeight(90px);
            line-height: setLengthByHeight(90px);
            color: #333;
            background: #fff;
            font-size: 0.8rem;
            border-bottom: 1px solid #e3e3e3;
            padding: 0 w(20);
            overflow: hidden;
            span{
                float: left;
                width: w(160);
                @include over;
            }
            .suggest{
                width: 60%;
                text-align: right;
                .min{
                    margin-right: 3%;
                }
            }
        }
        .sell_info{
            font-size: 0.8rem;
            padding: 0 w(20);
            background-color: #fff9e6;
            border-bottom: 1px solid #e3e3e3;
            overflow: hidden;
            .sell{
                height: setLengthByHeight(90px);
                line-height: setLengthByHeight(85px);
                background-color: #fff;
                font-size: 1rem;
                border: 1px solid #e2dac3;
                border-radius: 3px;
                padding: 0 w(20);
                margin-top: setLengthByHeight(15px);
                span{
                    float: left;
                    width: w(150);
                    @include over;
                }
                .input{
                    font-size: 1rem;
                    text-align: right;
                    height: 100%;
                    @include over;
                    i{
                        font-size: 0.8rem;
                        margin-right: -3px;
                    }
                    input{
                        text-align: right;
                        border: none;
                        width: 25%;
                        height: 100%;
                    }
                }
            }
            .stock{
                width: 40%;
                height: setLengthByHeight(75px);
                line-height: setLengthByHeight(75px);
                input{
                    width: 30%;
                    text-align: center;
                    background-color: transparent;
                    height: 100%;
                    font-size: 0.9rem;
                    border: none;
                    padding: 0 5px;
                    @include over;
                }
            }
            .profit{
                width: 40%;
                height: setLengthByHeight(75px);
                line-height: setLengthByHeight(75px);
                text-align: right;
                i{
                    margin-left: 5%;
                    color: $col;
                    font-size: 0.8rem;
                }
                em{
                    color: $col;
                    height: 100%;
                    @include over;
                }
            }
        }
    }
    .web_foot{
        text-align: center;
        overflow: hidden;
        a{
            width: w(300);
        }
        &.foot_sold{
            @include f_b;
            padding: 0 w(40);
            .white{
                color: #333;
            }
        }
    }
}